package cn.edu.sig.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.edu.sig.bean.CurrentPage;
import cn.edu.sig.bean.Style;
import cn.edu.sig.dao.StyleDao;

@Service("styleService")
@Transactional
public class StyleService {

	@Resource(name="styleDao")
	private StyleDao styleDao;
	
	public CurrentPage<Style> findAllById(int id,int pageNo,int pageSize){
		
		return  styleDao.findChild(id, pageNo, pageSize);
	}
	public List<Style> findAll(int id){
		
		return  styleDao.findStyle(id);
	}
}
